﻿namespace Anley.DomainDrivenDesign.Contract.Infrastructure;

/// <summary>
/// SQLServer仓储上下文类
/// </summary>
public class SqlServerRepositoryContext
    : IDbRepositoryContext
{
    // 数据库连接
    public IDbConnection Connection { get; protected set; }

    public SqlServerRepositoryContext(
        string connectionString)
    {
        Connection = new SqlConnection(connectionString);
    }
}